-- GENERATED SPELL FOR [Crag Stalker] --


function spell0_4126(pUnit, Event) --@Surprise Attack,n/a--
pUnit:FullCastSpellOnTarget(8151,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4126', 3000, 1)
end

function Sorts_4126(pUnit, Event)
local choix_sorts_4126 = math.random(0, 0)
if choix_sorts_4126 == 0 then
pUnit:RegisterEvent('spell0_4126', 1, 1)
end
end

function mob4126_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4126', math.random(1500, 3000), 1)
end

function mob4126_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4126_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4126_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4126, 1, 'mob4126_Action')
RegisterUnitEvent(4126, 2, 'mob4126_Leave')
RegisterUnitEvent(4126, 3, 'mob4126_Kill')
RegisterUnitEvent(4126, 4, 'mob4126_Die')
